package com.huluobo.lc.libnetwork;

/**
 * @author Lc
 * @description: 功能:get请求的具体实现方式
 * @date :2020/7/14 8:51
 */
public class GetRequest<T> extends Request<T, GetRequest> {
    public GetRequest(String url) {
        super(url);
    }

    @Override
    protected okhttp3.Request generateRequest(okhttp3.Request.Builder builder) {
        okhttp3.Request request =
                builder.get().url(UrlCreator.createUrlFromParams(url, params)).build();
        return request;
    }
}
